package com.studentmanagement.model;

public class Course {
    private Integer id;
    private String courseCode;
    private String name;
    private Integer teacherId;
    private String department;
    private Integer credits;
    private String description;
    private Integer capacity;
    private String schedule;
    private String classroom;
    private String semester;
    
    // 非数据库字段，用于显示教师姓名
    private String teacherName;
    
    // Constructors
    public Course() {
    }
    
    public Course(Integer id, String courseCode, String name, Integer teacherId, String department,
                  Integer credits, String description, Integer capacity, String schedule, 
                  String classroom, String semester) {
        this.id = id;
        this.courseCode = courseCode;
        this.name = name;
        this.teacherId = teacherId;
        this.department = department;
        this.credits = credits;
        this.description = description;
        this.capacity = capacity;
        this.schedule = schedule;
        this.classroom = classroom;
        this.semester = semester;
    }
    
    // Getters and Setters
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public String getCourseCode() {
        return courseCode;
    }
    
    public void setCourseCode(String courseCode) {
        this.courseCode = courseCode;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public Integer getTeacherId() {
        return teacherId;
    }
    
    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }
    
    public String getTeacherName() {
        return teacherName;
    }
    
    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }
    
    public String getDepartment() {
        return department;
    }
    
    public void setDepartment(String department) {
        this.department = department;
    }
    
    public Integer getCredits() {
        return credits;
    }
    
    public void setCredits(Integer credits) {
        this.credits = credits;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public Integer getCapacity() {
        return capacity;
    }
    
    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }
    
    public String getSchedule() {
        return schedule;
    }
    
    public void setSchedule(String schedule) {
        this.schedule = schedule;
    }
    
    public String getClassroom() {
        return classroom;
    }
    
    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }
    
    public String getSemester() {
        return semester;
    }
    
    public void setSemester(String semester) {
        this.semester = semester;
    }
    
    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", courseCode='" + courseCode + '\'' +
                ", name='" + name + '\'' +
                ", department='" + department + '\'' +
                ", credits=" + credits +
                ", capacity=" + capacity +
                ", semester='" + semester + '\'' +
                '}';
    }
} 